package cn.tl.base.service;

import cn.tl.base.query.BaseQuery;
import cn.tl.org.utils.QueryResult;

import java.util.List;

public interface IBaseService<T> {
    //查询所有
    List<T> findAll();
    //根据id查询
    T findById(Long id);
    //新增
    void save(T t);
    //修改
    void update(T t);
    //删除
    void delete(Long id);
    //分页和高级查询
    QueryResult<T> queryPage(BaseQuery query);
}
